//
// Created by 34753 on 2025/6/4.
//
#include <zq_drivers.h>

//---------------------------------中断处理函数--------------------------------------//
using namespace zq;

extern "C" {
void interrupt Error_ISR()
{
    while (true)
    {
    }
}


void interrupt Timer1_ISR()
{
    ISR::timer1();
}


void interrupt McBSP0_Receive_ISR()
{
    ISR::mcbsp0_receive();
}

void interrupt McBSP0_Transmit_ISR()
{
    ISR::mcbsp0_transmit();
}

void interrupt DMAC0_ISR()
{
    DMA0::clearInterruptFlags();
    ISR::dmac0();
}

void interrupt DMAC1_ISR()
{
    DMA1::clearInterruptFlags();
    ISR::dmac1();
}

void interrupt DMAC2_ISR()
{
    DMA2::clearInterruptFlags();
    ISR::dmac2();
}

void interrupt DMAC3_ISR()
{
    DMA3::clearInterruptFlags();
    ISR::dmac3();
}

void interrupt DMAC4_ISR()
{
    DMA4::clearInterruptFlags();
    ISR::dmac4();
}

void interrupt DMAC5_ISR()
{
    DMA5::clearInterruptFlags();
    ISR::dmac5();
}
}
